﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using NLog;
using Entity;

public partial class Admin_AdminSite : System.Web.UI.MasterPage
{
    private static Logger _logger = LogManager.GetCurrentClassLogger();


    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            if (!IsPostBack)
            {
                Users objUser = (Users)Session["Admin"];
                if (objUser.UserPermission == 1)
                {
                    UserTAB.Style.Add("display", "none");
                    //ContactUs.Style.Add("display", "none");
                    ReportTab.Style.Add("display", "none");
                    ulCategories.Style.Add("display", "none");
                    sep1.Style.Add("display", "none");
                    sep2.Style.Add("display", "none");
                    sep3.Style.Add("display", "none");
                    div_ClientArticles.Style.Add("display", "none");
                    div_ClientAcceptRegister.Style.Add("display", "none");
                    sep4.Style.Add("display", "none");
                    div_ClientPenddingRegister.Style.Add("display", "none");
                    sep5.Style.Add("display", "none");
                }
            }
        }
        catch (Exception ex)
        {
           // _logger.Error("Admin_Users:::lbtnRefreshGV_Click:::" + ex.Message);

        }
    }
}
